package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the EMER_ARRANGE database table.
 * 
 */
@Entity
@Table(name="EMER_ARRANGE")
@NamedQuery(name="EmerArrange.findAll", query="SELECT e FROM EmerArrange e")
public class EmerArrange implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="EMER_ARRANGE_ID")
	private long emerArrangeId;

	private String classes;

	@Temporal(TemporalType.DATE)
	@Column(name="DATA_")
	private Date data;

	//bi-directional many-to-one association to OfficeFunction
	@ManyToOne
	@JoinColumn(name="OFFICE_FUNCTION_ID")
	private OfficeFunction officeFunction;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="STAFF_ID")
	private Staff staff;

	public EmerArrange() {
	}

	public long getEmerArrangeId() {
		return this.emerArrangeId;
	}

	public void setEmerArrangeId(long emerArrangeId) {
		this.emerArrangeId = emerArrangeId;
	}

	public String getClasses() {
		return this.classes;
	}

	public void setClasses(String classes) {
		this.classes = classes;
	}

	public Date getData() {
		return this.data;
	}

	public void setData(Date data) {
		this.data = data;
	}

	public OfficeFunction getOfficeFunction() {
		return this.officeFunction;
	}

	public void setOfficeFunction(OfficeFunction officeFunction) {
		this.officeFunction = officeFunction;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

}